package main

import "fmt"

func main() {
	listMap := make(map[string][]string)
	listMap["k1"] = []string{"sdclone", "xyt", "xpt"}
	listMap["k2"] = []string{"wtf", "lol", "lmao"}

	for k, v := range listMap {
		fmt.Println(k, v)
	}

	strsRes, ok := listMap["k3"]
	fmt.Println(strsRes, ok) // [] false 如果是不存在的字段，ok = false

	strsRes2, ok2 := listMap["k1"]
	fmt.Println(strsRes2, ok2) //[sdclone xyt xpt] true

}
